<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../struts_taglib.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>  
  <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  <title>系统管理/菜单</title>
  <%@ include file="../link_script.jsp" %>
  <script src="js/pmis/pmis-function.js" language="javascript" type="text/javascript"></script>
</head>
<body>
<html:form styleId="list" action="/function.do">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <%@ include file="../operate_button_list.jsp" %>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="8" background="images/tab_12.gif">&nbsp;</td>
        <td><table id="theObjTable" width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#b5d6e6">
          <tr>
            <td width="4%" class="tdClass">选择</td>
            <td width="4%" class="tdClass">序号</td>
            <td width="4%" class="tdClass"><span class="resizeDivClass" onMouseDown=MouseDownToResize(this); onMouseMove=MouseMoveToResize(this); onMouseUp=MouseUpToResize(this);></span><B>编号</B></td>
            <td width="5%" class="tdClass"><span class="resizeDivClass" onMouseDown=MouseDownToResize(this); onMouseMove=MouseMoveToResize(this); onMouseUp=MouseUpToResize(this);></span>上级编号</td>
            <td width="15%" class="tdClass"><span class="resizeDivClass" onMouseDown=MouseDownToResize(this); onMouseMove=MouseMoveToResize(this); onMouseUp=MouseUpToResize(this);></span>菜单名称</td>
            <td width="25%" class="tdClass"><span class="resizeDivClass" onMouseDown=MouseDownToResize(this); onMouseMove=MouseMoveToResize(this); onMouseUp=MouseUpToResize(this);></span>描述</td>
            <td width="4%" class="tdClass"><span class="resizeDivClass" onMouseDown=MouseDownToResize(this); onMouseMove=MouseMoveToResize(this); onMouseUp=MouseUpToResize(this);></span>模式</td>
            <td width="15%" class="tdClass"><span class="resizeDivClass" onMouseDown=MouseDownToResize(this); onMouseMove=MouseMoveToResize(this); onMouseUp=MouseUpToResize(this);></span>菜单标题</td>
            <td width="4%" class="tdClass"><span class="resizeDivClass" onMouseDown=MouseDownToResize(this); onMouseMove=MouseMoveToResize(this); onMouseUp=MouseUpToResize(this);></span>状态</td>          
            <td width="15%" class="tdClass"><span class="resizeDivClass" onMouseDown=MouseDownToResize(this); onMouseMove=MouseMoveToResize(this); onMouseUp=MouseUpToResize(this);></span>常用操作</td>
            <td width="*" class="tdClass">...</td>           
          </tr>
          <logic:notEmpty name="functionsList">
          <% int i = 0; %>
            <logic:iterate id="var" name="functionsList">
            <% i++; %>
              <tr>
                <td class="STYLE12"><input type="checkbox" name="ids" value="${var.functionID}" /></td>
                <td class="STYLE12"><%=i %></td>
                <td class="STYLE12"><B><bean:write name="var" property="functionID" /></B></td>
                <td class="STYLE12"><bean:write name="var" property="functionParentID" /></td>
                <td class="STYLE11">&nbsp;<bean:write name="var" property="functioName" /></td>
                <td class="STYLE11">&nbsp;<bean:write name="var" property="functionDescription" /></td>
                <td class="STYLE12"><bean:write name="var" property="functionTarget" /></td>
                <td class="STYLE11">&nbsp;<bean:write name="var" property="functionTilte" /></td>
                <c:if test="${var.functionParentID=='-1'}">
                <td class="STYLE12">正常</td>
                <td class="STYLE12">二级菜单&nbsp;启用&nbsp;停用</td>
                </c:if><c:if test="${var.functionParentID=='1' && var.functionState=='0'}">
                <td class="STYLE12">正常</td>
                <td class="STYLE12"><a href="function.do?method=listNextFunction&functionParentID=${var.functionID}">二级菜单</a>&nbsp;启用&nbsp;<a href="function.do?method=stopFunction&functionID=${var.functionID}">停用</a></td>
                </c:if><c:if test="${var.functionParentID=='1' && var.functionState=='1'}">
                <td class="STYLE12"><font color="red">停用</font></td>
                <td class="STYLE12"><a href="function.do?method=listNextFunction&functionParentID=${var.functionID}">二级菜单</a>&nbsp;<a href="function.do?method=startFunction&functionID=${var.functionID}">启用</a>&nbsp;停用</td>
                </c:if>
                <td class="STYLE12">&nbsp;&nbsp;</td>
              </tr>
            </logic:iterate>
          </logic:notEmpty>
        </table></td>
        <td width="8" background="images/tab_15.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <%@ include file="../no_page.jsp"%>
</table>
</html:form>
</body>
</html>

